package Offer;

/**
 *  0～n-1中缺失的数字
 * @author 是阿秋啊
 * @date 2022/04/02 17:24
 **/
public class Num53II {
    public int missingNumber(int[] nums) {
        for (int i = 0; i < nums.length; i++) {
            if (nums[i] != i) {
                return i;
            }
        }
        return -1;
    }
}
